package com.un.ebs.inventory.domain;

import java.util.Date;
import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InventoryExt)表实体类
 *
 * @author liubo
 * @since 2020-12-12 22:26:19
 */
@Data
@Component
@TableName("v_inventory_ext")
@SuppressWarnings("serial")
public class InventoryExt extends Model<InventoryExt> {


    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "warehouse_id", length = 40, precision = 0)
    private String warehouseId;

    @DbField(name = "warehouse_code", length = 10, precision = 0)
    private String warehouseCode;

    @DbField(name = "warehouse_name", length = 100, precision = 0)
    private String warehouseName;

    @DbField(name = "qty", length = 38, precision = 6)
    private Double qty;

    @DbField(name = "lock_by_in_qty", length = 38, precision = 6)
    private Double lockByInQty;

    @DbField(name = "lock_by_out_qty", length = 38, precision = 6)
    private Double lockByOutQty;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "last_update_time", length = -1, precision = 0)
    private Date lastUpdateTime;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "is_receive", length = -1, precision = 0)
    private Boolean isReceive;

    @DbField(name = "is_deliver", length = -1, precision = 0)
    private Boolean isDeliver;

    @DbField(name = "is_store", length = -1, precision = 0)
    private Boolean isStore;

    @DbField(name = "is_producer", length = -1, precision = 0)
    private Boolean isProducer;

    @DbField(name = "is_temp", length = -1, precision = 0)
    private Boolean isTemp;

    @DbField(name = "is_bad", length = -1, precision = 0)
    private Boolean isBad;

    @DbField(name = "is_material", length = -1, precision = 0)
    private Boolean isMaterial;

    @DbField(name = "is_product", length = -1, precision = 0)
    private Boolean isProduct;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "name_as", length = 100, precision = 0)
    private String nameAs;

    @DbField(name = "class_id", length = 40, precision = 0)
    private String classId;

    @DbField(name = "class_name", length = 40, precision = 0)
    private String className;

    @DbField(name = "buy_min_qty", length = -1, precision = 0)
    private Integer buyMinQty;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "production_seq_id", length = 40, precision = 0)
    private String productionSeqId;

    @DbField(name = "production_seq_name", length = 100, precision = 0)
    private String productionSeqName;

    @DbField(name = "warehouse_desc", length = 100, precision = 0)
    private String warehouseDesc;


}